--本程序绘制股价曲线
function love.load()
	font = love.graphics.newFont("font/SourceHanSansCN-Normal.otf",12)
end
function love.draw()
  love.graphics.setBackgroundColor(255, 255, 255)
  love.graphics.setColor(0, 0, 0)
  love.graphics.setFont(font)
  
  --绘制窗体
  love.graphics.setLineWidth(5)
  local group1x=10
  local group1y=10
  love.graphics.line(group1x,group1y,group1x+120,group1y,group1x+120,group1y+120,group1x,group1y+120,group1x,group1y)
  love.graphics.line(group1x+120,group1y+1,group1x+180,group1y+180)
  
  group1x=10
  group1y=180
  love.graphics.line(group1x,group1y,group1x+120,group1y,group1x+120,group1y+120,group1x,group1y+120,group1x,group1y)
 
 graph = {}
for i = 1, 20 do
    graph[i] = i * 2 -- i * 2 is just example data
end
for i = 1, 20 do
    love.graphics.points(i, graph[i])
end

  
end